package com.sscl.easyble.interfaces.connections

/**
 * 写入大量数据时的回调
 *
 * @author jackie
 */
interface OnLargeCharacteristicDataWriteListener {

    /**
     * 启动失败
     */
    fun startFailed()

    /**
     * 开始发送数据
     */
    fun sendStarted()

    /**
     * 发送数据异常
     */
    fun writeDataError(currentIndex: Int, targetIndex: Int, gattState: Int, data: ByteArray)

    /**
     * 发送数据失败
     */
    fun sendFailed(currentIndex: Int, targetIndex: Int, data: ByteArray)

    /**
     * 发送进度变化
     */
    fun sendProgressChanged(currentIndex: Int, targetIndex: Int, bytes: ByteArray)
    /**
     * 发送完成
     */
    fun sendFinish()

}